package com.cskaoyan.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author: JianhuaZeng
 * @Date: 2022/12/29 22:29
 */
public class DateToString {

    /**
     * @description: 将Date转成string
     * @param: date
     * @return: java.lang.String
     * @author: JianhuaZeng
     * @date: 2022/12/29 2022/12/29
     */
    public static String getDateString(Date date){
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return dateFormat.format(date);
    }
}
